package com.qf.erp_system_admin.service.impl;

import com.qf.erp_system_admin.entity.Power;
import com.qf.erp_system_admin.mapper.PowerMapper;
import com.qf.erp_system_admin.service.PowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author baishi Li
 * @date
 * @desc
 */
@Service
public class PowerServiceImpl implements PowerService {
    @Autowired
    private PowerMapper mapper;

    @Override
    public List<Power> findAll() {
        return mapper.findAll();
    }

    @Override
    public Power findOnePower(int pwId) {
        return mapper.findOnePower(pwId);
    }
}
